package com.example.javaeespringioc.demos;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;

@Slf4j
@RestController
@RequestMapping("/demo4")
public class demo4 {
    @RequestMapping("/logger")
    public String printLog(){
        log.error("error级别日志");
        log.warn("warn级别日志");
        log.info("info级别日志");
        return "打印日志";
    }
}
